package com.bdmc.alarm.domain.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.common.annotation.ExcelDictFormat;
import com.bdmc.common.constant.GenConstants;
import com.bdmc.common.convert.ExcelDictConvert;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 报警明细视图对象 alarm_detail
 *
 * @author bdmc
 * @date 2022-03-11
 */
@Data
@ExcelIgnoreUnannotated
public class AlarmDetailVo {

	private static final long serialVersionUID = 1L;

    /**
     * 报警id
     */
	@ExcelProperty(value = "报警id")
	private Long alarmId;

    /**
     * 事件id
     */
	@ExcelProperty(value = "事件id")
	private Long eventId;

    /**
     * 纬度
     */
	@ExcelProperty(value = "纬度")
	private String lat;

    /**
     * 经度
     */
	@ExcelProperty(value = "经度")
	private String lng;

    /**
     * 设备位置
     */
	@ExcelProperty(value = "设备位置")
	private String address;

    /**
     * 数据时间
     */
	@ExcelProperty(value = "数据时间")
	private LocalDateTime alarmTime;

    /**
     * 车辆状态详情，字符串拼接逗号分隔
     */
	@ExcelProperty(value = "车辆状态详情，字符串拼接逗号分隔")
	private String carStatus;

    /**
     * 报警类型的中文字符串
     */
    @ExcelProperty(value = "报警类型的中文字符串", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "alarm_type")
	private String alarmType;

    /**
     * 高度
     */
	@ExcelProperty(value = "高度")
	private Integer hight;

    /**
     * 速度
     */
	@ExcelProperty(value = "速度")
	private BigDecimal speed;

    /**
     * 0-360
     */
	@ExcelProperty(value = "0-360")
	private Integer direction;



}
